#pragma once

#include <arpa/inet.h>

typedef enum player_mode {   // player_mode
    kPLAYER_MODE_PASSIVE,    // 玩家等待连接
    kPLAYER_MODE_POSITIVE    // 玩家主动发起连接
}TPLAYER_MODE;

typedef struct shake_hand_info {
    char player_mode;
    struct sockaddr_in opponent_address;
}ShakeHandInfo;

ShakeHandInfo Connecting_ShakeHand(int sockfd);